<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>

        .ddd{
            margin-left: 148px;
            margin-top: -1246px;
        }

    </style>
</head>
<body>

 <table border="1" cellspacing="0">
       <tr>
           <th>A姓名</th>
           <th>A性别</th>
           <th>A年龄</th>
           <th>B性别</th>
           <th>B年龄</th>
           <th>B性别</th>
           <th>关系</th>
       </tr>

       <tr  th:each="ex:${exam}">
           <td th:text="${ex.name}"></td>
           <td>
               <div th:if="${ex.sex=='M'}">男</div>
               <div th:if="${ex.sex=='F'}">女</div>
           </td>
           <td th:text="${ex.age}"></td>

           <td th:text="${ex.names}"></td>
           <td>
               <div th:if="${ex.sexs=='M'}">男</div>
               <div th:if="${ex.sexs=='F'}">女</div>
           </td>
           <td th:text="${ex.age1}"></td>
           <td th:text="${ex.leancc}"></td>
 </tr>
 </table>


</body>
</html>